#ifndef INCLUDED_jax_io_JInputStream
#define INCLUDED_jax_io_JInputStream

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

#include <jax/io/JCloseable.h>
#ifndef INCLUDED_cpp_CppInt32__
#include <cpp/CppInt32__.h>
#endif
HX_DECLARE_CLASS1(haxe,Int64)
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS2(haxe,io,Input)
HX_DECLARE_CLASS2(jax,io,JCloseable)
HX_DECLARE_CLASS2(jax,io,JInputStream)
HX_DECLARE_CLASS2(jax,lang,JAutoClosable)
namespace jax{
namespace io{


class JInputStream_obj : public hx::Object{
	public:
		typedef hx::Object super;
		typedef JInputStream_obj OBJ_;
		JInputStream_obj();
		Void __construct(::haxe::io::Input ntv);

	public:
		static hx::ObjectPtr< JInputStream_obj > __new(::haxe::io::Input ntv);
		static Dynamic __CreateEmpty();
		static Dynamic __Create(hx::DynamicArray inArgs);
		~JInputStream_obj();

		HX_DO_RTTI;
		static void __boot();
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		inline operator ::jax::io::JCloseable_obj *()
			{ return new ::jax::io::JCloseable_delegate_< JInputStream_obj >(this); }
		inline operator ::jax::lang::JAutoClosable_obj *()
			{ return new ::jax::lang::JAutoClosable_delegate_< JInputStream_obj >(this); }
		hx::Object *__ToInterface(const type_info &inType);
		::String __ToString() const { return HX_CSTRING("JInputStream"); }

		::haxe::io::Input _ntv; /* REM */ 
		::haxe::io::Bytes _mark; /* REM */ 
		virtual int availiable( );
		Dynamic availiable_dyn();

		virtual int read( Array< int > b,::cpp::CppInt32__ off,::cpp::CppInt32__ len);
		Dynamic read_dyn();

		virtual ::haxe::Int64 skip( ::haxe::Int64 n);
		Dynamic skip_dyn();

		virtual Void close( );
		Dynamic close_dyn();

		virtual Void mark( );
		Dynamic mark_dyn();

		virtual bool markSupported( );
		Dynamic markSupported_dyn();

		virtual Void reset( );
		Dynamic reset_dyn();

};

} // end namespace jax
} // end namespace io

#endif /* INCLUDED_jax_io_JInputStream */ 
